import request from '@/utils/request'

// 查询饮食记录列表
export function listUser_food_info(query) {
  return request({
    url: '/ring/user_food_info/list',
    method: 'get',
    params: query
  })
}

// 查询饮食记录详细
export function getUser_food_info(id) {
  return request({
    url: '/ring/user_food_info/' + id,
    method: 'get'
  })
}

// 新增饮食记录
export function addUser_food_info(data) {
  return request({
    url: '/ring/user_food_info',
    method: 'post',
    data: data
  })
}

// 修改饮食记录
export function updateUser_food_info(data) {
  return request({
    url: '/ring/user_food_info',
    method: 'put',
    data: data
  })
}

// 删除饮食记录
export function delUser_food_info(id) {
  return request({
    url: '/ring/user_food_info/' + id,
    method: 'delete'
  })
}
